home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Q-R / QuickTurtle.cpt / QuickTurtle / QuickTurtle.rsrc / STR#_101.txt < prev    next >
Encoding:
Text File  |  1991-06-27  |  3.6 KB  |  77 lines

  1. The put command takes the form:
  2.  
  3. put <expr> into <variable>
  4.  
  5. assigning the value of ‚Äúexpr‚Äù to the variable;
  6.  
  7. or:
  8.  
  9. put the position into <x,y>
  10.  
  11. assigning the current pen coordinates to the variables x,y.
  12.  
  13. The forward command takes the form:
  14.  
  15.   forward <distance>
  16.  
  17. The distance parameter represents pixels.  Fractional values are significant.  This is the only drawing command; it draws a straight line (unless the pen is up).
  18.  
  19. The ‚Äúturn right‚Äù command takes the form:
  20.  
  21.   turn right <angle>
  22.  
  23. The angle parameter represents degrees.  Values outside the range ¬±359 are rendered modulo 360 (so that, e.g., 370 becomes 10).
  24.  
  25. ‚ÄúTurn left‚Äù is the same as ‚Äúturn right‚Äù, except it turns the other way.
  26.  
  27. The ‚Äúset heading‚Äù command takes the form:
  28.  
  29.   set heading <angle>
  30.  
  31. The parameter represents degrees.  The constants ‚Äúnorth,‚Äù ‚Äúeast,‚Äù ‚Äúsouth,‚Äù & ‚Äúwest,‚Äù can be used as equivalents for 0, 90, 180, & 270 respectively.
  32.  
  33. The ‚Äúset position‚Äù command takes the form:
  34.  
  35.   set position <x,y>
  36.  
  37. The parameters represent horizontal & vertical pixel coordinates. The center of the window is 0,0, so that the ‚Äúx‚Äù coordinate is negative left of center, ‚Äúy‚Äù negative below the center.
  38.  
  39. The penSize command takes 2 parameters, representing the width and height in pixels of the line drawn by the pen:
  40.  
  41. penSize <width,height>.
  42.  
  43. The parameters must be greater than zero, less than the width & height of the screen.
  44.  
  45. The penMode command takes one of 9 constant parameters: normal, patXor, blend, addPin, addOver, subPin, subOver, adMax, adMin.
  46.  
  47. All but the first 2 modes work only in color.
  48.  
  49. The penPat command takes an integer parameter in the range 1..40.  It causes the pen to draw using the corresponding pattern (as shown in the ‚ÄúEdit Patterns‚Äù dialog).
  50.  
  51. The ‚ÄúforeColor‚Äù command sets the drawing color. It takes an integer parameter which represents the index value of the color (in the range 0..255) in the current palette.  In a black-&-white environment, ‚ÄúforeColor‚Äù does nothing.
  52.  
  53. The ‚ÄúbackColor‚Äù command sets the background color, i.e., the color that appears when the window is erased.  Its parameter, like that of ‚ÄúforeColor,‚Äù represents an index to the current palette.  Also like ‚ÄúforeColor,‚Äù it has no effect in black-&-white.
  54.  
  55. The ‚Äúpen up‚Äù command causes all drawing to cease until ‚Äúpen down‚Äù is called.
  56.  
  57. The ‚Äúpen down‚Äù command causes drawing to resume after a preceding ‚Äúpen up‚Äù command.
  58.  
  59. The ‚Äúclear screen‚Äù command erases whatever has been drawn in the window.
  60.  
  61. The wrap command takes either of two parameters, ‚Äúon‚Äù or ‚Äúoff‚Äù.
  62.  
  63. ‚ÄúWrap on‚Äù causes drawing that goes off one edge of the window to wrap around and continue in from the opposite edge.
  64.  
  65. ‚ÄúWrap off‚Äù disables wrapping.
  66.  
  67. The openPoly command causes all subsequent lines drawn to be grouped in a polygon, until ‚ÄúclosePoly‚Äù is called.  It also has the effect of ‚Äúpen up,‚Äù so call ‚Äúpen down‚Äù if you want the outline to be visible.
  68.  
  69. The closePoly command concludes the recording of a polygon begun with ‚ÄúopenPoly.‚Äù  It also restores the pen to its state prior to calling ‚ÄúopenPoly‚Äù; i.e., it has the effect of ‚Äúpen down.‚Äù
  70.  
  71. The offSetPoly command takes two parameters, representing horizontal and vertical pixel distances.  It moves the most recently recorded polygon (if any) by that distance.
  72.  
  73. The paintPoly command fills in the most recently recorded polygon using the current pen color, mode, and pattern.
  74.  
  75. The fillPoly command fills in the most recently recorded polygon with the pattern indicated by its single integer parameter (in the range 1..40, as shown in the ‚ÄúDisplay Patterns‚Äù dialog).
  76.  
  77.